package com.feilong.edgeAI.ui;

import android.app.Activity;
import android.net.http.SslError;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.webkit.SslErrorHandler;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.aiibt.common.core.WDActivity;
import com.aiibt.common.util.Constant;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.blankj.utilcode.util.ConvertUtils;
import com.feilong.edgeAI.R;
import com.feilong.edgeAI.adapter.HelpAdapter;
import com.feilong.edgeAI.adapter.SpacingItemDecoration;
import com.feilong.edgeAI.databinding.ActivityHelpBinding;
import com.feilong.edgeAI.vm.SaveViewModel;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

/**
 * Created by【仿脑科技】
 *帮助页面，以图片方式展示
 * @Author: potato
 * @CreateDate: 2023/12/20 14:56
 */

@Route(path = Constant.ACTIVITY_URL_HELP)
public class HelpActivity extends WDActivity<SaveViewModel, ActivityHelpBinding> {
    private static final String TAG = "HelpActivity";

    @RequiresApi(api = Build.VERSION_CODES.N)
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding.recyclerView.setLayoutManager(new GridLayoutManager(this,1));
        int space = ConvertUtils.dp2px(1);
        binding.recyclerView.addItemDecoration(new SpacingItemDecoration(space));
        binding.recyclerView.setAdapter(new HelpAdapter());
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_help;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
